import { axios } from '@/utils/http/request'
// import { makeFormData } from '@/utils/util'

export const hospitalApi = {
  list: '/scen/mdtrt/iptList',
  deptList: '/scen/mdtrt/deptList',
  personnelList: '/scen/mdtrt/psnList'
}

// 获取住院列表
export function hospitalList (headers, params) {
  return axios({
    url: hospitalApi.list,
    method: 'post',
    headers,
    params
  })
}

// 获取住院科室列表
export function deptList (headers, params) {
  return axios({
    url: hospitalApi.deptList,
    method: 'post',
    headers,
    params
  })
}

// 获取住院科室列表
export function personnelList (headers, params) {
  return axios({
    url: hospitalApi.personnelList,
    method: 'post',
    headers,
    params
  })
}
